from app.models.artist import Artist
from google.appengine.ext import webapp
import os
from google.appengine.ext.webapp import template

class AllArtistsPage(webapp.RequestHandler):
    def get(self):
        artists = Artist.all()
        template_values = {
            'artists': artists,
        }
        
        path = os.path.join(os.path.dirname(__file__), '../../views/artist/all_artist.html')
        
        self.response.out.write(template.render(path, template_values))
        